/**
 *  权限
 */
export default (initialState) => {
  // app.js getInitialState 周期之后会执行

  const { authority } = initialState;
  var accessObj = {};
  
  // 全部权限
  var allAccess=[
    'AccessGet',
    'AccessSet',
  ]

  var accessObj = {};
  allAccess.forEach((item) => (accessObj[item] = false));
  authority.forEach((item) => (accessObj[item] = true));
  return { ...accessObj };
};
